package day6;
import java.util.Scanner;
public class day8 {
    public static void main(String[]args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入班级人数:");
        int num = scanner.nextInt();
        double  count=0;
        int i=1;
        do{
            System.out.println("请输入第"+i+"学生的成绩");
            double falg=scanner.nextDouble();
            i++;
            if(falg<80){
                continue;
        }else{
                count++;
            }
        }while(i<=num);
        System.out.println("80分以上的学生人数:"+count);
        System.out.println("80分以上的学生比例为:" +(count/num)*100+"%");
    }

}